package com.ksd.system.service.impl;

import com.ksd.system.domain.SysFreq;
import com.ksd.system.mapper.SysFreqMapper;
import com.ksd.system.service.ISysFreqService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 频点参数Service业务层处理
 * 
 * @author y.wu
 * @date 2025-02-08
 */
@Service
public class SysFreqServiceImpl implements ISysFreqService
{
    @Autowired
    private SysFreqMapper sysFreqMapper;

    /**
     * 查询频点参数
     * 
     * @param id 频点参数主键
     * @return 频点参数
     */
    @Override
    public SysFreq selectSysFreqById(Long id,String tableName)
    {
        return sysFreqMapper.selectSysFreqById(id,tableName);
    }

    /**
     * 查询频点参数列表
     * 
     * @param sysFreq 频点参数
     * @return 频点参数
     */
    @Override
    public List<SysFreq> selectSysFreqList(SysFreq sysFreq,String tableName)
    {
        return sysFreqMapper.selectSysFreqList(sysFreq,tableName);
    }

    /**
     * 新增频点参数
     * 
     * @param sysFreq 频点参数
     * @return 结果
     */
    @Override
    public int insertSysFreq(SysFreq sysFreq,String tableName)
    {
        return sysFreqMapper.insertSysFreq(sysFreq,tableName);
    }

    /**
     * 修改频点参数
     * 
     * @param sysFreq 频点参数
     * @return 结果
     */
    @Override
    public int updateSysFreq(SysFreq sysFreq,String tableName)
    {
        return sysFreqMapper.updateSysFreq(sysFreq,tableName);
    }

    /**
     * 删除频点参数信息
     * 
     * @param id 频点参数主键
     * @return 结果
     */
    @Override
    public int deleteSysFreqById(Long id,String tableName)
    {
        return sysFreqMapper.deleteSysFreqById(id,tableName);
    }

    @Override
    public int clearSysFreq(String tableName) {
        return sysFreqMapper.clearSysFreq(tableName);
    }

    @Override
    public SysFreq selectSysFreqByFreqAndBoardId(Long freq, String board,String tableName) {
        return sysFreqMapper.selectSysFreqByFreqAndBoardId(freq,Long.valueOf(board),tableName);
    }

    @Override
    public SysFreq selectSysFreqByFreq(Long freq,String tableName) {
        return sysFreqMapper.selectSysFreqByFreq(freq,tableName);
    }

    @Override
    public List<SysFreq> selectSysFreqListByFreq(SysFreq numberFreq,String tableName) {
        return sysFreqMapper.selectSysFreqListByFreq(numberFreq,tableName);
    }

    @Override
    public List<SysFreq> selectSysFreqListByNumber(SysFreq sysFreq,String tableName){
        return sysFreqMapper.selectSysFreqListByNumber(sysFreq,tableName);
    }
}
